emacs.git
4 years agoFix whitespace
Justin Burkett [Tue, 1 Jun 2021 02:52:43 +0000 (22:52 -0400)]
Fix whitespace

4 years agoFix recent commit
Justin Burkett [Tue, 1 Jun 2021 02:48:53 +0000 (22:48 -0400)]
Fix recent commit

4 years agoFix README links
Justin Burkett [Tue, 1 Jun 2021 02:34:08 +0000 (22:34 -0400)]
Fix README links

4 years agoReference issues #93 and #175 in README
Justin Burkett [Tue, 1 Jun 2021 02:30:32 +0000 (22:30 -0400)]
Reference issues #93 and #175 in README

Fixes #291

4 years agoMerge pull request #303 from tarsiiformes/posframe
Justin Burkett [Tue, 1 Jun 2021 02:21:44 +0000 (22:21 -0400)]
Merge pull request #303 from tarsiiformes/posframe

Support packages that use another frame to display bindings

4 years agoGet which-key--buffer's window from any frame
Jonas Bernoulli [Sun, 30 May 2021 18:39:55 +0000 (20:39 +0200)]
Get which-key--buffer's window from any frame

Previously we assumed the buffer was being displayed in a window
of the current frame, which isn't the case if e.g. a child frame
is being used.

We also cannot assume that the third-party code that sets up such
a child frame also deletes it.  `which-key-posframe' for example
merely hides it.

4 years agoCosmetics
Jonas Bernoulli [Sun, 30 May 2021 18:18:50 +0000 (20:18 +0200)]
Cosmetics

4 years agoAvoid code-duplication in which-key--hide-popup
Jonas Bernoulli [Sun, 30 May 2021 18:17:49 +0000 (20:17 +0200)]
Avoid code-duplication in which-key--hide-popup

4 years agoFix nesting-level of "God-mode" section
Jonas Bernoulli [Sun, 30 May 2021 18:16:53 +0000 (20:16 +0200)]
Fix nesting-level of "God-mode" section

4 years agofix which-key--show-keymap for which-key-enable-extended-define-key
Jiangbin Zhao [Sun, 23 May 2021 21:07:53 +0000 (14:07 -0700)]
fix which-key--show-keymap for which-key-enable-extended-define-key

With which-key-enable-extended-define-key set to 't, given the keymap
and bindings below:

  (setq a-map (make-sparse-keymap))
  (bind-keys :map a-map
             ("a" . ("key 1" . command-1))
             ("b" . ("key b" . command-2)))

The output of (which-key--get-keymap-bindings a-map) was having
"unknown" as the key descriptions.

This change fixes it therefore allows the following to work as
expected:

(which-key--show-keymap "A map" a-map)

5 years agoUnset header-line-format format in " *which-key*" buffer
Frank Terbeck [Tue, 6 Apr 2021 15:18:16 +0000 (17:18 +0200)]
Unset header-line-format format in " *which-key*" buffer

Similarly to mode-line-format, header-line-format just takes up space and
currently also breaks window size calculations for the buffer. This sets
it to nil in order to suppress its display.

Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
5 years agoUpdate reference to obsolete variable in DOCSTRING (#285)
Celestial Nebula [Wed, 24 Mar 2021 18:21:16 +0000 (18:21 +0000)]
Update reference to obsolete variable in DOCSTRING (#285)

5 years agoVersion 3.5.1
Justin Burkett [Sun, 31 Jan 2021 18:37:08 +0000 (13:37 -0500)]
Version 3.5.1

5 years agoFurther simplify which-key--pseudo-key
Justin Burkett [Wed, 16 Dec 2020 17:20:14 +0000 (12:20 -0500)]
Further simplify which-key--pseudo-key

5 years agosimplify pseudo key
Daniel Mendler [Tue, 15 Dec 2020 22:49:28 +0000 (23:49 +0100)]
simplify pseudo key

5 years agoREAMDE code's Number of parentheses pairs (#270)
BlaCk_Void [Fri, 13 Nov 2020 01:22:08 +0000 (01:22 +0000)]
REAMDE code's Number of parentheses pairs (#270)

5 years agoAdd tests for keymap-based-bindings
Justin Burkett [Mon, 19 Oct 2020 15:15:35 +0000 (11:15 -0400)]
Add tests for keymap-based-bindings

5 years agoClarify README's description of keymap-based replacement
Justin Burkett [Sun, 18 Oct 2020 19:34:53 +0000 (15:34 -0400)]
Clarify README's description of keymap-based replacement

5 years agoVersion 3.5.0
Justin Burkett [Tue, 8 Sep 2020 23:01:44 +0000 (19:01 -0400)]
Version 3.5.0

5 years agoFix which-key--next-page-hint
Justin Burkett [Tue, 8 Sep 2020 22:59:30 +0000 (18:59 -0400)]
Fix which-key--next-page-hint

prefix-keys might be a vector.

Fixes #265

5 years agoHide paging hint when prefix is help-char
Justin Burkett [Tue, 8 Sep 2020 18:18:21 +0000 (14:18 -0400)]
Hide paging hint when prefix is help-char

We can't do paging in this case.

5 years agoImprove keymap-based-replacement description in README
Justin Burkett [Fri, 4 Sep 2020 20:06:48 +0000 (16:06 -0400)]
Improve keymap-based-replacement description in README

Ref #263

5 years agoRemove use of focus-{in,out}-hook
Justin Burkett [Wed, 2 Sep 2020 01:35:43 +0000 (21:35 -0400)]
Remove use of focus-{in,out}-hook

Fix #259 #260 #262

5 years agoRemove testing badge from README
Justin Burkett [Fri, 28 Aug 2020 14:27:24 +0000 (10:27 -0400)]
Remove testing badge from README

Github integrates the results into the interface already, and it doesn't seem to
work.

5 years agoStop testing against v24.5
Justin Burkett [Fri, 28 Aug 2020 14:24:31 +0000 (10:24 -0400)]
Stop testing against v24.5

It's old enough now

5 years agoAdd which-key-add-keymap-based-replacements
Justin Burkett [Fri, 28 Aug 2020 14:17:40 +0000 (10:17 -0400)]
Add which-key-add-keymap-based-replacements

This is an alternative to advising define-key using
which-key-enable-extended-define-key, but functions the same beneath the
surface.

Ref #226 #261

5 years agoFix #257 (#258)
Rudi Grinberg [Mon, 17 Aug 2020 23:58:31 +0000 (07:58 +0800)]
Fix #257 (#258)

* Add test for #257

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
* Fix #257

Explicitly distinguish between replacing with `nil` and not replacing at
all.

I'm also simplifying the code by making all the branches more explicit.
This is a little longer, but makes all the clauses obvious.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
5 years agoSpeed up which-key--maybe-replace
Rudi Grinberg [Fri, 17 Jul 2020 01:14:09 +0000 (18:14 -0700)]
Speed up which-key--maybe-replace

The first optimization is avoiding the intermediate list created by
append. Instead we just iterate over the two lists in turn

The second opimitization occurs where
which-key-allow-multiple-replacements is nil, in which case we can stop
the iteration once we've found a replacement

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
5 years agoAdd basic PR template
Justin Burkett [Tue, 21 Jul 2020 14:16:25 +0000 (10:16 -0400)]
Add basic PR template

5 years agoFix which-key--propertize-description use make-text-button return value (#249)
N V [Thu, 2 Jul 2020 02:19:37 +0000 (22:19 -0400)]
Fix which-key--propertize-description use make-text-button return value (#249)

As of:

https://github.com/emacs-mirror/emacs/commit/7ac79872aed63110c0d26c1e62e1838d6101c9bd

make-text-button no longer modifies a string when it is passed as the
first argument. which-key--propertize-description relied on the mutation
of the string argument. Using the return value of make-text-button will
return the propertized string with both the new and old behavior.

Fixes #248

6 years agoFix last commit
Justin Burkett [Sun, 16 Feb 2020 23:22:45 +0000 (18:22 -0500)]
Fix last commit

6 years agoTest once a month
Justin Burkett [Sun, 16 Feb 2020 18:54:20 +0000 (13:54 -0500)]
Test once a month

6 years agoMerge remote-tracking branch 'hlissner/patch-1'
Justin Burkett [Sun, 16 Feb 2020 18:50:34 +0000 (13:50 -0500)]
Merge remote-tracking branch 'hlissner/patch-1'

6 years agoFix prefix argument for which-key-show-major-mode (#239)
Yunhao Zhao [Sun, 16 Feb 2020 13:50:11 +0000 (21:50 +0800)]
Fix prefix argument for which-key-show-major-mode (#239)

6 years agoFix case sorting in alpha sort functions
Justin Burkett [Wed, 12 Feb 2020 14:23:18 +0000 (09:23 -0500)]
Fix case sorting in alpha sort functions

6 years agoFix short windows being resized
Justin Burkett [Wed, 12 Feb 2020 02:48:57 +0000 (21:48 -0500)]
Fix short windows being resized

fit-window-to-buffer defaults to a min height of 4. For some reason, the order
in which fit-window-to-buffer is called in display-buffer-in-side-window seems
to have changed. This makes the order not matter.

6 years agoSimplify last commit
Justin Burkett [Sat, 8 Feb 2020 03:40:28 +0000 (22:40 -0500)]
Simplify last commit

6 years agoReplace use of xor
Justin Burkett [Sat, 8 Feb 2020 03:34:41 +0000 (22:34 -0500)]
Replace use of xor

Apparently this is a recent function

6 years agoChange name of workflow
Justin Burkett [Sat, 8 Feb 2020 03:32:41 +0000 (22:32 -0500)]
Change name of workflow

6 years agoFix sorting of keys and add test
Justin Burkett [Sat, 8 Feb 2020 03:29:40 +0000 (22:29 -0500)]
Fix sorting of keys and add test

Fixes #233

6 years agoRevive Cask file
Justin Burkett [Fri, 7 Feb 2020 15:02:52 +0000 (10:02 -0500)]
Revive Cask file

6 years agoReplace travis badge with github workflow badge
Justin Burkett [Fri, 7 Feb 2020 02:55:41 +0000 (21:55 -0500)]
Replace travis badge with github workflow badge

6 years agoDisable travis and cask
Justin Burkett [Fri, 7 Feb 2020 02:54:34 +0000 (21:54 -0500)]
Disable travis and cask

6 years agoMore workflow fixes
Justin Burkett [Fri, 7 Feb 2020 02:50:04 +0000 (21:50 -0500)]
More workflow fixes

6 years agoFix workflow
Justin Burkett [Fri, 7 Feb 2020 02:48:04 +0000 (21:48 -0500)]
Fix workflow

6 years agoFix previous commit
Justin Burkett [Fri, 7 Feb 2020 02:46:12 +0000 (21:46 -0500)]
Fix previous commit

6 years agoTry purcell's workflow action
Justin Burkett [Fri, 7 Feb 2020 02:44:46 +0000 (21:44 -0500)]
Try purcell's workflow action

6 years agoUpdate travis versions
Justin Burkett [Fri, 7 Feb 2020 02:31:18 +0000 (21:31 -0500)]
Update travis versions

6 years agoRefactor regexp & fix incompatibility + error
Henrik Lissner [Thu, 2 Jan 2020 21:41:11 +0000 (16:41 -0500)]
Refactor regexp & fix incompatibility + error

6 years agoStrip out advice in command docstrings
Henrik Lissner [Thu, 26 Dec 2019 01:27:17 +0000 (20:27 -0500)]
Strip out advice in command docstrings

6 years agoMake which-key-show prefix mode-line work like top and bottom
Justin Burkett [Tue, 4 Feb 2020 01:57:53 +0000 (20:57 -0500)]
Make which-key-show prefix mode-line work like top and bottom

Fixes #234

6 years agoAdd full keymap versions of show-{major,minor}-mode
Justin Burkett [Sun, 19 Jan 2020 20:10:12 +0000 (15:10 -0500)]
Add full keymap versions of show-{major,minor}-mode

Fixes #236

6 years agoRefactor regexp & fix incompatibility + error
Henrik Lissner [Thu, 2 Jan 2020 21:41:11 +0000 (16:41 -0500)]
Refactor regexp & fix incompatibility + error

6 years agoStrip out advice in command docstrings
Henrik Lissner [Thu, 26 Dec 2019 01:27:17 +0000 (20:27 -0500)]
Strip out advice in command docstrings

6 years agoMake next page hint more consistent
Justin Burkett [Sat, 21 Dec 2019 18:57:34 +0000 (13:57 -0500)]
Make next page hint more consistent

6 years agoGeneralize C-h commands to use help-char
Justin Burkett [Sat, 21 Dec 2019 18:47:54 +0000 (13:47 -0500)]
Generalize C-h commands to use help-char

help-char defaults to C-h. This removes the assumption that help-char is set to
C-h.

See #228

6 years agoDefault to imprecise window fitting on terminal
Justin Burkett [Wed, 27 Nov 2019 17:00:57 +0000 (12:00 -0500)]
Default to imprecise window fitting on terminal

See #225.

6 years agoFix typos (#222)
Jonas Bernoulli [Mon, 11 Nov 2019 19:51:32 +0000 (20:51 +0100)]
Fix typos (#222)

6 years agoRework implementation of manual updating
Justin Burkett [Fri, 2 Aug 2019 02:40:30 +0000 (22:40 -0400)]
Rework implementation of manual updating

Instead of having people mess with prefix-help-command, use a new variable
which-key-show-early-on-C-h and control everything through
which-key-C-h-dispatch.

6 years agoUse which-key-idle-secondary-delay value in manual updates
Justin Burkett [Thu, 1 Aug 2019 19:31:33 +0000 (15:31 -0400)]
Use which-key-idle-secondary-delay value in manual updates

6 years agoFix paging in which-key-manual-update
Justin Burkett [Wed, 31 Jul 2019 17:59:11 +0000 (13:59 -0400)]
Fix paging in which-key-manual-update

6 years agoCleanup whitespace in README
Justin Burkett [Wed, 31 Jul 2019 16:31:57 +0000 (12:31 -0400)]
Cleanup whitespace in README

6 years agoAnnounce which-key-manual-update
Justin Burkett [Wed, 31 Jul 2019 16:31:37 +0000 (12:31 -0400)]
Announce which-key-manual-update

6 years agoAdd which-key-manual-update
Justin Burkett [Wed, 31 Jul 2019 16:12:32 +0000 (12:12 -0400)]
Add which-key-manual-update

Intended to be used for prefix-help-command

Ref #66

6 years agoAdd no-paging optional arg to which-key-show-keymap
Justin Burkett [Tue, 23 Jul 2019 15:52:11 +0000 (11:52 -0400)]
Add no-paging optional arg to which-key-show-keymap

6 years agowhich-key-persistent-popup-p -> which-key-persistent-popup
Justin Burkett [Tue, 23 Jul 2019 15:34:49 +0000 (11:34 -0400)]
which-key-persistent-popup-p -> which-key-persistent-popup

6 years agoAdd which-key-persistent-popup-p variable (#213)
Uros Perisic [Sat, 20 Jul 2019 18:29:54 +0000 (02:29 +0800)]
Add which-key-persistent-popup-p variable (#213)

I did not remove the `pre-command-hook', because that would require me
to add the hook back every time `which-key--hide-popup' is called,
which seems excessive. Hercules.el already handles this more
conservatively. But if you want me to, I can add it.

6 years agoAdd translation keymap support (#210)
D.K [Wed, 29 May 2019 01:14:09 +0000 (04:14 +0300)]
Add translation keymap support (#210)

6 years agoAdd which-key-dump-bindings
Justin Burkett [Sat, 18 May 2019 01:57:18 +0000 (21:57 -0400)]
Add which-key-dump-bindings

Fixes #209

7 years agoAdd note to docstring for which-key-idle-delay
Justin Burkett [Fri, 15 Mar 2019 12:48:23 +0000 (08:48 -0400)]
Add note to docstring for which-key-idle-delay

Ref #206

7 years agoAdd debugging messages for buffer sizing
Justin Burkett [Wed, 6 Mar 2019 15:18:52 +0000 (10:18 -0500)]
Add debugging messages for buffer sizing

7 years agoDon't ignore case when making replacements
Justin Burkett [Fri, 1 Mar 2019 15:41:36 +0000 (10:41 -0500)]
Don't ignore case when making replacements

Fixes #204

7 years agoVersion 3.3.2
Justin Burkett [Mon, 25 Feb 2019 19:10:06 +0000 (14:10 -0500)]
Version 3.3.2

7 years agoAlways check non-major-mode replacements in which-key--maybe-replace
Justin Burkett [Mon, 25 Feb 2019 14:57:03 +0000 (09:57 -0500)]
Always check non-major-mode replacements in which-key--maybe-replace

7 years agoSimplify finding and matching replacements
Justin Burkett [Mon, 25 Feb 2019 03:57:31 +0000 (22:57 -0500)]
Simplify finding and matching replacements

Don't try to grab all matching replacements ahead of time, because later ones
may not match if earlier ones make deletions.

Fixes #202

7 years agoVersion 3.3.1
Justin Burkett [Wed, 14 Nov 2018 14:34:39 +0000 (09:34 -0500)]
Version 3.3.1

7 years agoFix use of describe-prefix-bindings in which-key-show-standard-help
Justin Burkett [Wed, 14 Nov 2018 14:32:27 +0000 (09:32 -0500)]
Fix use of describe-prefix-bindings in which-key-show-standard-help

Use describe-prefix-bindings directly if we do not enter through
which-key-C-h-dispatch.

Fixes #198

7 years agoCheck for existence of buffer in which-key--popup-showing-p
Justin Burkett [Thu, 8 Nov 2018 15:21:07 +0000 (10:21 -0500)]
Check for existence of buffer in which-key--popup-showing-p

Fixes #197

7 years agoMention #130 in README
Justin Burkett [Tue, 28 Aug 2018 15:44:32 +0000 (11:44 -0400)]
Mention #130 in README

7 years agoMake Travis test on v26.1
Justin Burkett [Wed, 27 Jun 2018 14:28:44 +0000 (10:28 -0400)]
Make Travis test on v26.1

7 years agoVersion 3.3.0
Justin Burkett [Thu, 21 Jun 2018 19:38:47 +0000 (15:38 -0400)]
Version 3.3.0

7 years agoFix handling of duplicate (evil) bindings in show keymap
Justin Burkett [Fri, 8 Jun 2018 12:51:48 +0000 (08:51 -0400)]
Fix handling of duplicate (evil) bindings in show keymap

7 years agoUse window-size-change-functions for detecting size changes
Justin Burkett [Fri, 1 Jun 2018 13:46:35 +0000 (09:46 -0400)]
Use window-size-change-functions for detecting size changes

Fixes #193

7 years agoAdd support for evil's auxiliary maps in show-keymap functions
Justin Burkett [Thu, 31 May 2018 02:02:11 +0000 (22:02 -0400)]
Add support for evil's auxiliary maps in show-keymap functions

7 years agoFix prefix bindings in which-key-show-major-mode
Justin Burkett [Thu, 31 May 2018 01:43:50 +0000 (21:43 -0400)]
Fix prefix bindings in which-key-show-major-mode

7 years agoFix behavior of f and t in evil operator map
Justin Burkett [Tue, 22 May 2018 14:11:15 +0000 (10:11 -0400)]
Fix behavior of f and t in evil operator map

f and t (also F and T) read characters manually, so the popup should not be
shown after these commands. This only applies if
which-key-show-operator-state-maps is non-nil.

Fixes #191

7 years agoVersion 3.2.0
Justin Burkett [Thu, 26 Apr 2018 14:33:36 +0000 (10:33 -0400)]
Version 3.2.0

8 years agoFix and improve defcustoms
Michał K [Wed, 21 Mar 2018 10:31:52 +0000 (11:31 +0100)]
Fix and improve defcustoms

8 years agoFix switching to top-level from which-key-undo-key
Justin Burkett [Thu, 1 Mar 2018 18:18:43 +0000 (13:18 -0500)]
Fix switching to top-level from which-key-undo-key

8 years agoFactor out which-key--this-command-keys function
Justin Burkett [Thu, 1 Mar 2018 02:29:52 +0000 (21:29 -0500)]
Factor out which-key--this-command-keys function

8 years agoFixes related to removal of which-key--current-prefix
Justin Burkett [Thu, 1 Mar 2018 02:19:23 +0000 (21:19 -0500)]
Fixes related to removal of which-key--current-prefix

8 years agoFix display of meta bindings in which-key-show-keymap
Justin Burkett [Wed, 28 Feb 2018 16:20:20 +0000 (11:20 -0500)]
Fix display of meta bindings in which-key-show-keymap

8 years agoFix which-key--create-pages
Justin Burkett [Wed, 28 Feb 2018 13:03:16 +0000 (08:03 -0500)]
Fix which-key--create-pages

8 years agoRemove which-key--current-prefix
Justin Burkett [Wed, 28 Feb 2018 12:57:44 +0000 (07:57 -0500)]
Remove which-key--current-prefix

8 years agoAdd prefix arg to which-key--get-current-bindings and ..
Justin Burkett [Wed, 28 Feb 2018 02:05:58 +0000 (21:05 -0500)]
Add prefix arg to which-key--get-current-bindings and ..

which-key--get-bindings

8 years agoRemove a bunch of global variables
Justin Burkett [Wed, 28 Feb 2018 01:32:19 +0000 (20:32 -0500)]
Remove a bunch of global variables

Remove need for which-key--using-top-level. Add prefix-title slot to
which-key--pages object.  Remove which-key--using-show-keymap. Remove
which-key--current-show-keymap-name. Remove
which-key--using-show-operator-keymap.

8 years agoAdd and use which-key--automatic-display
Justin Burkett [Wed, 28 Feb 2018 01:30:07 +0000 (20:30 -0500)]
Add and use which-key--automatic-display

8 years agoUse cl-struct to hold which-key pages
Justin Burkett [Tue, 27 Feb 2018 14:04:39 +0000 (09:04 -0500)]
Use cl-struct to hold which-key pages

8 years agoAdd which-key-toggle-docstrings
Justin Burkett [Mon, 26 Feb 2018 18:24:41 +0000 (13:24 -0500)]
Add which-key-toggle-docstrings

8 years agoConsolidate key binding collection into which-key--get-bindings
Justin Burkett [Mon, 26 Feb 2018 18:21:17 +0000 (13:21 -0500)]
Consolidate key binding collection into which-key--get-bindings